package com.ruge.seckill.domain.dao;

import com.ruge.seckill.domain.model.SeckillOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author ruge.wu
 * @since 2022/1/26 15:48
 */

public interface SeckillOrderRepository extends JpaRepository<SeckillOrder, Long> {
    Optional<SeckillOrder> findFirstByUserId(Integer userId);
}
